package com.base.fallback;

import com.base.feign.SysyemClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName: SysyemClientFallback
 * @Description: 针对system系统模块 进行降级容错处理
 * @Author: CJQ
 * @Date: 2021/2/2 10:24
 */
@Component
@Slf4j
public class SysyemClientFallback implements SysyemClient {


    @Override
    public String hello(String account) {
        log.info("SysyemClientFallback:系统管理模块服务不可用");
        return "BASE-SYSTEM服务连接超时或服务不可用，请联系管理员CJQ";
    }
}
